package com.bcmusic.authorization.service;
import com.bcmusic.authorization.domain.vo.GetBoughtMusicVO;
import com.bcmusic.authorization.pojo.Authorization;
import com.bcmusic.order.pojo.OrderCart;
import com.github.pagehelper.PageInfo;
import entity.Result;

import java.util.List;
/****
 * @Author:admin
 * @Description:Authorization业务层接口
 * @Date 2019/6/14 0:16
 *****/
public interface AuthorizationService {

    /**
     * 根据订单id再购物车中查询对应的商品放入授权信息中
     * @param orderId
     * @return
     */
    Integer addAuthorization(Integer orderId);

    /**
     * 根据音乐id查询该音乐当前的转让情况
     * @param musicId
     * @return
     */
    List<Authorization> getCurrentTransferById(Integer musicId);

    /**
     * 查询我购买的音乐
     * @param userNum
     * @return
     */
    List<GetBoughtMusicVO> getBoughtMusic(String userNum);
}
